package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import com.sky.result.Result;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.*;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Mapper
public interface ShoppingMapper {

    ShoppingCart selectCart(ShoppingCart shoppingCart);

    @Update("update shopping_cart set number = #{number} where id = #{id}")
    void updateNumber(ShoppingCart list);


    void insert(ShoppingCart shoppingCart);

    List<ShoppingCart> select(ShoppingCart shoppingCart);
@Delete("delete from shopping_cart")
    void delete();


    void deleteById(ShoppingCart shoppingCart);
}
